package com.ruoyi.goodsInfoNew.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品主表对象 wdm_goods_new
 * 
 * @author ruoyi
 * @date 2025-05-22
 */
public class GoodsNew extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    private Long goodsId;

    /** 分类ID */
    private Long categoryId;

    /** 类型 */
    private Long goodsType;

    /** 名称 */
    @Excel(name = "名称")
    private String goodsName;

    /** 主图 */
    @Excel(name = "主图")
    private String imgUrl;

    /** 成本价 */
    private BigDecimal costPrice;

    /** 市场价 */
    private BigDecimal marketPrice;

    /** 销售价 */
    @Excel(name = "销售价")
    private BigDecimal salePrice;

    /** 折扣率 */
    @Excel(name = "折扣率")
    private BigDecimal discountRate;

    /** 服务属性 */
    private String serviceProps;

    /** 节日属性 */
    private String festivalProps;

    /** 总库存 */
    @Excel(name = "总库存")
    private Long totalStock;

    /** 销量 */
    @Excel(name = "销量")
    private Long salesVolume;

    /** 状态（0=正常 1=禁用） */
    @Excel(name = "状态", readConverterExp = "0==正常,1==禁用")
    private Integer status;

    /** 删除标志（0=存在 1=删除） */
    private Integer delFlag;

    /** 版本号（乐观锁，每次更新自增） */
    private Long version;

    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }

    public void setGoodsType(Long goodsType) 
    {
        this.goodsType = goodsType;
    }

    public Long getGoodsType() 
    {
        return goodsType;
    }

    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }

    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }

    public void setCostPrice(BigDecimal costPrice) 
    {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostPrice() 
    {
        return costPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) 
    {
        this.marketPrice = marketPrice;
    }

    public BigDecimal getMarketPrice() 
    {
        return marketPrice;
    }

    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }

    public void setDiscountRate(BigDecimal discountRate) 
    {
        this.discountRate = discountRate;
    }

    public BigDecimal getDiscountRate() 
    {
        return discountRate;
    }

    public void setServiceProps(String serviceProps) 
    {
        this.serviceProps = serviceProps;
    }

    public String getServiceProps() 
    {
        return serviceProps;
    }

    public void setFestivalProps(String festivalProps) 
    {
        this.festivalProps = festivalProps;
    }

    public String getFestivalProps() 
    {
        return festivalProps;
    }

    public void setTotalStock(Long totalStock) 
    {
        this.totalStock = totalStock;
    }

    public Long getTotalStock() 
    {
        return totalStock;
    }

    public void setSalesVolume(Long salesVolume) 
    {
        this.salesVolume = salesVolume;
    }

    public Long getSalesVolume() 
    {
        return salesVolume;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("goodsId", getGoodsId())
            .append("categoryId", getCategoryId())
            .append("goodsType", getGoodsType())
            .append("goodsName", getGoodsName())
            .append("imgUrl", getImgUrl())
            .append("costPrice", getCostPrice())
            .append("marketPrice", getMarketPrice())
            .append("salePrice", getSalePrice())
            .append("discountRate", getDiscountRate())
            .append("serviceProps", getServiceProps())
            .append("festivalProps", getFestivalProps())
            .append("totalStock", getTotalStock())
            .append("salesVolume", getSalesVolume())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("version", getVersion())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
